package com.jky.trial.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jky.trial.common.QueryParam;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Msg extends QueryParam implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private Integer fromUser;   //发送用户,0为系统
    private Integer toUser;     //目标用户
    private Integer type;
    private String title;
    private String content;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateAt;
    private Boolean deleted;
    private Integer targetId;   //相关主体
}